﻿@model SAB.Domain.Publication.PublicationType
@{
    ViewBag.Title = "Modify";
}

<div class="row">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li>@Html.ActionLink("Home", "Index", "Home")</li>
            <li>@Html.ActionLink("Tipo publicación", "Search", "PublicationType")</li>
            <li class="active">Modificar</li>
        </ol>
    </div>
</div>

<div class="row">
    <div class="col-md-12 title">
        <h1>Detalle Tipo de Publicación</h1>
    </div>
</div>

<div class="row">
    @using (Html.BeginForm("Update", "PublicationType"))
    {
        <div class="col-md-10">
            <div class="col-md-10">
                <div class="form-group">
                    <div class="row">
                        <div class="col-md-1">
                        </div>
                        <div class="col-md-2">
                            <label for="tipo">Codigo</label>
                        </div>
                        <div class="col-md-7">
                            <div class="form-group">
                                <input class="form-control" type="text" name="Id" id="Id" value="@Model.Id" readonly>
                                <input class="form-control" type="text" name="Id" id="Id" value="@Model.Id" style="display:none">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="row">
                        <div class="col-md-1">
                        </div>
                        <div class="col-md-2">
                            <label for="tipo">Nombre</label>
                        </div>
                        <div class="col-md-7">
                            <div class="form-group">
                                <input class="form-control" type="text" name="Name" id="Name" value="@Model.Name" pattern="[A-Za-zá-úÁ-Ú\s]+" title="Solo letras y espacios" required maxlength="50">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="row">
                        <div class="col-md-1">
                        </div>
                        <div class="col-md-2">
                            <label for="tipo">Descripción</label>
                        </div>
                        <div class="col-md-7">
                            <div class="form-group">
                                <input class="form-control" type="text" name="Description" id="Description" value="@Model.Description" pattern="[A-Za-zá-ú0-9Á-Ú ]+" title="No se admite caracteres especiales" maxlength="50" />
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <div class="row">
                <div class="col-md-8">
                    <button type="submit" class="btn btn-primary pull-right">Guardar</button>
                </div>
            </div>
        </div>
    }
</div>
